package sensors.virtualSensors;

import maze.Maze;
import pacman.Ghost;
import sensors.UltrasonicSensor;
import sensors.Sensor;

public class VirtualUltrasonicSensor extends Sensor implements UltrasonicSensor{
	
	public VirtualUltrasonicSensor(Ghost ghost){
		super(ghost);
	}

	@Override
	public int getDistance() {
		return getGhost().getSimulator().SimulateUltrasonicSensor(getGhost());
	}
}
